from selenium import webdriver
import time

from selenium.webdriver.common.by import By

now_time = time.strftime("%Y_%m_%d_%H_%M_%S")

print(now_time)

driver = webdriver.Chrome()
driver.get("http://www.baidu.com")
driver.maximize_window()
time.sleep(2)
driver.find_element(By.ID, 'kw').send_keys("狗狗币")
# pic_url = driver.save_screenshot('./img/baidu.png')
driver.quit()
